gcdata->hint = xstrdup(s);
break;
case 12: // cache type
- gcdata->type = gs_mktype(s);
+ if (strcmp(s, "Mystery Cache") == 0) {
+ gcdata->type = gt_suprise;
+ } else {
+ gcdata->type = gs_mktype(s);
+ }
break;
case 13:
wpt_tmp->creation_time = maggeo_parsedate(s);
break;
- case 14: // last found date is ignored.
+ case 14: // last found date was ignored. Implemented 2013-02-27.
+ gcdata->last_found = maggeo_parsedate(s);
break;
case 15:
gcdata->diff = 10 * atof(s);
gpsbabel -i gpx -f ${REFERENCE}/track/tracks.gpx -o fugawi -F ${TMPDIR}/fugawi5.txt
compare ${REFERENCE}/track/fugawi.txt ${TMPDIR}/fugawi5.txt
-#
-# Magellan Explorist geocaching format (write-only).
-#
-gpsbabel -i gpx -f ${REFERENCE}/gc/GC7FA4.gpx -f ${REFERENCE}/gc/GCGCA8.gpx -o maggeo -F ${TMPDIR}/maggeo.gs
-compare ${REFERENCE}/gc/maggeo.gs ${TMPDIR}/maggeo.gs
-
#
# IGN Rando tests
#
--- /dev/null
+
+#
+# Magellan Explorist geocaching format (write-only).
+#
+gpsbabel -i gpx -f ${REFERENCE}/gc/GC7FA4.gpx -f ${REFERENCE}/gc/GCGCA8.gpx -o maggeo -F ${TMPDIR}/maggeo.gs
+compare ${REFERENCE}/gc/maggeo.gs ${TMPDIR}/maggeo.gs
+
+gpsbabel -i maggeo -f ${REFERENCE}/gc/maggeo.gs -o maggeo -F ${TMPDIR}/maggeo2.gs
+compare ${REFERENCE}/gc/maggeo.gs ${TMPDIR}/maggeo2.gs